fname = srl-`date +%m-%d-%Y`.zip

make:
	make -C src
wine:
	make wine -C src
log:
	echo "()" > course.srl
	echo "()" > log.srl
zip:
	zip -r $(fname) README TODO srl srl.exe course.srl log.srl \
			images/graph-total.png images/graph-weekly.png \
			images/srl.ico images/srl.png \
			lib
clean:
	rm -r srl srl.exe course.srl log.srl
	rm -r lib
libcopy:
	cp -r linux/lib .
	cp -r win32/lib .
	rm srl.exe
	rm srl
	cp win32/srl.exe .
	cp linux/bin/srl .
	rm -r linux win32
all:
	rm srl-*-*-*.zip
	make
	make wine
	make libcopy
	make log
	make zip
	make clean
